package com.taxigang.server;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.taxigang.client.CountryService;

public class CountryServiceImpl extends RemoteServiceServlet implements
CountryService {

	String url = "http://127.0.0.1:8888/TaxiGangGWT.html?gwt.codesvr=127.0.0.1:9997&locale=de";

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;


	@Override
	public String getLocale() throws IOException{
		//return getThreadLocalRequest().getHeader("X-AppEngine-Country");
		getThreadLocalResponse().sendRedirect( "?locale=de" );

		return "xx";
	}

}
